#ifndef __MYQUEUE_H__
#define __MYQUEUE_H__

typedef struct _queuenode{
    struct _queuenode* prev;
    struct _queuenode* next;
    void* data;
}queuenode;

typedef struct _queue{
    struct _queuenode* first;
    struct _queuenode* last;
}queue;

queue* init_queue(queue* q);
void push_queue(queue* q, void* data);
void* pop_queue(queue* q);

#endif